import axios from "../request";

// 获取权限树形数据
export const getPermissionTreeApi = (params) =>
	axios({
		url: "/system/permission",
		params,
	});

// 添加权限
export const addPermissionApi = (data) =>
	axios({
		url: "/system/permission",
		method: "post",
		data,
	});

// 编辑权限
export const editPermissionApi = (data) =>
	axios({
		url: "/system/permission",
		method: "put",
		data,
	});

// 删除权限
export const deletePermissionApi = (data) =>
	axios({
		url: "/system/permission",
		method: "delete",
		data,
	});
